import os.path

from flask import Flask
from applications.base_config import BaseConfig

# 定义Flask的App信息
def create_app():
    app = Flask(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
    # 引入配置
   # app.config.from_object(BaseConfig)
    # 注册flask组件
    # 注册蓝图
    # 注册命令
    return  app